public class Date {
    public int year;
    public int month;
    public int day;



    public Date(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public void printDate(){
        System.out.println(year+"-"+month+"-"+day);
    }
    public Date(){
        /*System.out.println(year);*/
        this(2004,6,16);
     /*   this.year = year;
        this.month = month;
        this.day = day;*/

    }

    public static void main(String[] args) {
        Date date = new Date(1990,2,5);
        date.printDate();
        Date date1 = new Date();
        date1.printDate();//2004-6-16



    }
}
